/* pages/register/register.wxss */
.register-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #e2e2e2 0%, #fafafa 100%);
  padding: 40rpx 60rpx;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 80rpx;
  padding-top: 60rpx;
}

.title {
  display: block;
  font-size: 48rpx;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20rpx;
}

.subtitle {
  display: block;
  font-size: 32rpx;
  color: #333333;
  margin-bottom: 80rpx;
  font-weight: 500;
}

.form-container {
  background: #ffffff;
  border-radius: 24rpx;
  padding: 60rpx 40rpx;
  box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.1);
}

.form-item {
  margin-bottom: 40rpx;
  position: relative;
}

.label {
  display: block;
  font-size: 32rpx;
  color: #333333;
  margin-bottom: 16rpx;
  font-weight: 500;
}

.optional {
  font-size: 24rpx;
  color: #999999;
  margin-left: 8rpx;
}

.input {
  width: 100%;
  height: 88rpx;
  background: #f8f9fa;
  border: 2rpx solid #e9ecef;
  border-radius: 12rpx;
  padding: 0 24rpx;
  font-size: 30rpx;
  color: #333333;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4rpx rgba(102, 126, 234, 0.1);
}

.placeholder {
  color: #999999;
  font-size: 30rpx;
}

.picker {
  width: 100%;
  height: 88rpx;
  background: #f8f9fa;
  border: 2rpx solid #e9ecef;
  border-radius: 12rpx;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
}

.picker:active {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4rpx rgba(102, 126, 234, 0.1);
}

.picker-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24rpx;
  box-sizing: border-box;
}

.picker-text {
  font-size: 30rpx;
  color: #333333;
  flex: 1;
}

.picker-text:empty::before {
  content: '请选择家庭角色';
  color: #999999;
}

.picker-arrow {
  width: 0;
  height: 0;
  border-left: 12rpx solid transparent;
  border-right: 12rpx solid transparent;
  border-top: 12rpx solid #999999;
  transition: all 0.3s ease;
}

.picker:active .picker-arrow {
  border-top-color: #667eea;
  transform: rotate(180deg);
}

.register-btn {
  width: 100%;
  height: 88rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 32rpx;
  font-weight: bold;
  border: none;
  border-radius: 12rpx;
  margin-top: 40rpx;
  margin-bottom: 40rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.register-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
}

.login-link {
  text-align: center;
  font-size: 28rpx;
  color: #666666;
}

.link {
  color: #667eea;
  font-weight: 500;
  margin-left: 8rpx;
}

.link:active {
  opacity: 0.7;
}


/* 错误提示样式 */
.error-text {
  display: block;
  font-size: 24rpx;
  color: #ff4757;
  margin-top: 8rpx;
  margin-left: 4rpx;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4rpx); }
  75% { transform: translateX(4rpx); }
}

/* 输入框错误状态 */
.input.error {
  border-color: #ff4757;
  background: #fff5f5;
}

.picker.error {
  border-color: #ff4757;
  background: #fff5f5;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .register-container {
    padding: 30rpx 40rpx;
  }
  
  .form-container {
    padding: 40rpx 30rpx;
  }
  
  .title {
    font-size: 42rpx;
  }
}